package com.xiaobawang.knowledge.spider.constant;

import java.util.HashSet;
import java.util.Set;

/**
 * @author synhard
 * @description 国家金融监管总局相关常量
 * @date 2025/6/9 09:12
 * @email songxinhang2023@e-chinalife.com
 * @id 18101119
 * @phone 13001321080
 */
public class PeopleBankConstant {
    /**
     * 条款类别id
     */
    public static final String ITEM_ID_PEOPLE_BANK_RULES = "4214";
    public static final String ITEM_ID_PEOPLE_BANK_ADMINISTRATION = "4215";
    /**
     * 条款类别名称
     */
    public static final String ITEM_NAME_PEOPLE_RULES = "规章";
    public static final String ITEM_NAME_PEOPLE_ADMINISTRATION = "行政规范性文件";
    /**
     * 需要爬取的有效文件后缀名
     */
    public static final Set<String> VALID_FILE_TYPE_SET;

    static {
        VALID_FILE_TYPE_SET = new HashSet<>();
        VALID_FILE_TYPE_SET.add("pdf");
        VALID_FILE_TYPE_SET.add("doc");
        VALID_FILE_TYPE_SET.add("docx");
        VALID_FILE_TYPE_SET.add("xls");
        VALID_FILE_TYPE_SET.add("xlsx");
        VALID_FILE_TYPE_SET.add("csv");
        VALID_FILE_TYPE_SET.add("ppt");
        VALID_FILE_TYPE_SET.add("txt");
        VALID_FILE_TYPE_SET.add("wps");
    }
}
